<!DOCTYPE html>
<html>
<head>
    <title>分布式任务调度平台</title>
<#import "../common/common.macro.ftl" as netCommon>
<@netCommon.commonStyle />
    <!-- DataTables -->
    <link rel="stylesheet" href="${request.contextPath}/static/adminlte/plugins/datatables/dataTables.bootstrap.css">
    <!-- daterangepicker -->
    <link rel="stylesheet" href="${request.contextPath}/static/adminlte/plugins/daterangepicker/daterangepicker.css">
</head>
<body class="hold-transition skin-blue sidebar-mini <#if cookieMap?exists && cookieMap["adminlte_settings"]?exists && "off" == cookieMap["adminlte_settings"].value >sidebar-collapse</#if> ">
<div class="wrapper">
    <!-- header -->
<@netCommon.commonHeader />
    <!-- left -->
<@netCommon.commonLeft "env" />

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>任务调度历史</h1>
        </section>

        <!-- Main content -->
        <section class="content">

            <div class="row">
                <div class="col-xs-12">
                    <div class="box">
                        <div class="box-header">
                            <h3 class="box-title">调度历史列表</h3>&nbsp;&nbsp;
                        </div>
                        <div class="box-body">
                            <table id="joblog_list" class="table table-bordered table-striped display" width="100%" >
                                <thead>
                                <tr>
                                    <th>ID</th>
                                    <th>调度节点</th>
                                    <th>模式</th>
                                    <th>调度时间</th>
                                    <th>开始时间</th>
                                    <th>结束时间</th>
                                    <th>任务状态</th>
                                    <th>重试次数</th>
                                    <th>操作人</th>
                                </tr>
                                </thead>
                                <tbody>
                                <#if dataList?exists && dataList?size gt 0>
                                    <#list dataList as item>
                                    <tr>
                                        <td width="10%" >${item.id}</td>
                                        <td width="10%" >${item.scheduleNode}</td>
                                        <td width="5%" >
                                            <#if item.scheduleType = 1>人工<#else>系统</#if>
                                        </td>
                                        <td width="16%" >${item.scheduleTimeText}</td>
                                        <td width="16%" >${item.taskStartDateText}</td>
                                        <td width="16%" >${item.taskEndDateText}</td>

                                        <td width="10%" >${item.executeStatus}</td>
                                        <td width="10%" >${item.executorFailRetryCount}</td>
                                        <td width="20%" >${item.operator}</td>
                                    </tr>
                                    </#list>
                                </#if>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>

    <!-- footer -->
<@netCommon.commonFooter />
</div>

<@netCommon.commonScript />
<!-- DataTables -->
<script src="${request.contextPath}/static/adminlte/plugins/datatables/jquery.dataTables.min.js"></script>
<script src="${request.contextPath}/static/adminlte/plugins/datatables/dataTables.bootstrap.min.js"></script>
</body>
</html>
